#!/usr/bin/python3

import logging
def use_logging(f):
    def wra(*args,**kwa):
        logging.warn("%s is running" % f.__name__)
        return f(*args)
    return wra
@use_logging
def foo():
    print ("i am foo")
@use_logging
def bar():
    print ("i am bar")
foo()
bar()
